//
//  LastCollectionCell.m
//  JZRJAPP
//
//  Created by mac on 16/5/18.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "LastCollectionCell.h"

@implementation LastCollectionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
       
    }
    return self;
}-(void)setModel:(TechZBListModel *)model{
    _model = model;
    
    self.nameLable.text = model.Name;
    self.descrLabel.text = model.Tag;
    if ([_descrLabel.text isEqualToString:@"看好"]) {
        self.descrLabel.layer.borderColor = [UIColor redColor].CGColor;
        _descrLabel.textColor =[UIColor redColor];
    }
    if ([_descrLabel.text isEqualToString:@"观望"]) {
        self.descrLabel.layer.borderColor = [UIColor yellowColor].CGColor;
        _descrLabel.textColor =[UIColor yellowColor];
    }
    if ([_descrLabel.text isEqualToString:@"看空"]) {
        self.descrLabel.layer.borderColor = [UIColor greenColor].CGColor;
        _descrLabel.textColor =[UIColor greenColor];
        
    }
    
}
@end
